package com.google.guava.eventbus.test;

import com.google.guava.eventbus.internal.MyEventBus;

/**
 * @author fuc
 * @create 2020-10-08
 */
public class MyEventBusExample {

  public static void main(String[] args) {
    MyEventBus eventBus = new MyEventBus();
    eventBus.register(new MySimpleListener());
    eventBus.register(new MySimpleListener2());
    eventBus.post(123456, "test-topic");
    eventBus.post(123456, "exception-topic");
  }
}
